Image Generators are Generalist Vision Learners